package cn.wolfcode.crm.domain;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class CustomerTransfer {
	private Long id;

	private Long customerId; 	//客户

	private Long operatorId; 	//移交人

	private Date operateTime;	//移交时间

	private Long oldSellerId;	//老销售人员

	private Long newSellerId;	//新销售人员

	private String reason;		//移交原因
	
	private Customer customer;
	
	private Employee operator;
	
	private Employee oldSeller;
	
	private Employee newSeller;
	
	public String getCustomerName() {
		return customer.getName();
	}
	
	public String getOperatorName() {
		return operator.getName();
	}
	
	public String getOldSellerName() {
		return oldSeller.getName();
	}
	
	public String getNewSellerName() {
		return newSeller.getName();
	}

	

}
